var login = new Validated();
login.rules = {
      "linkname":{
          "data":/^\S{1,10}$/,
          "complete":"ok",
          "error":"输入联系人",
          "required":"true"
      },"zuoji":{
          "data":/^[0-9\-]{1,14}$/,
          "complete":"ok",
          "error":"不可以输入空格",
          "required":"true"
      },"email":{
          "data":/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
          "complete":"ok",
          "error":"输入邮箱有误",
          "required":"true"
      },"telphone":{
          "data": /^1[34578]\d{9}$/,
          "complete":"ok",
          "error":"只能输入数字",
          "required":"true"
      },"ame":{
          "data": /^[0-9]{1,}$/,
          "complete":"ok",
          "error":"只能输入数字",
          "required":"true"
      },"fax":{
          "data": /^[0-9]{1,}$/,
          "complete":"ok",
          "error":"只能输入数字",
          "required":"true"
      }              
};
login.blur().focus();
$('button').click(function () {
       if (login.complete("linkname", "zuoji", "email", "telphone", "ame", "fax")) {
        new Ajax("/my/contact_net.jsp").keyvalue($('.contact').serializeArray()).getJson(function (json) {
            if (json === 1) {
                $(window.parent.document).find('body').css({
                    "overflow-x": "hidden",
                    "overflow-y": "hidden"
                });
                $(window.parent.document).find("#vague").show();
            };
        });
       }
       $(this).text("修改");
    });


